home *** CD-ROM | disk | FTP | other *** search
/ TeX 1995 July / TeX CD-ROM July 1995 (Disc 1)(Walnut Creek)(1995).ISO / macros / musictex / older-versions / musictex.502 / SLURDD16.MF < prev    next >
Text File  |  1991-11-07  |  1KB  |  42 lines

  1. % Change of length into longueur for new modes.mf (Nicolas Brouard 4/11/91)
  2. input musicdef
  3. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  4. %                                                             %
  5. %                   BOGEN (KONKAV)                            %
  6. %                                                             %
  7. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  8.  
  9.  
  10. def drawslursneg (expr i, j) =
  11.     save jj, factor, longueur, depth;
  12.     numeric jj,  absp, longueur, depth, factor;
  13.     factor:= 1/6;
  14.     longueur := j*nhw#;
  15.     depth  := i*1/2nhh#;
  16.     if  j<4 : jj := (j*(j-1)+(i-1))*8
  17.     else:    jj := (i-1)*8+(j mod 2)*64+floor((j-2)/2);fi;
  18.           beginchar(jj, longueur, 0, depth);
  19.             clear;
  20.             z2r = (w,-d);
  21.             z1l = origin;
  22.             absp := abs((d,w));
  23.             if (factor*absp)>2nhh : factor:= 2nhh/absp fi;
  24.             z3r = 1/2z2r+factor*(d,w);
  25.             penpos1(thinwidth,90);
  26.             penpos2(thinwidth,90);
  27.             penpos3(5/12beamht,90);
  28.             currentpen := pencircle xscaled thinwidth yscaled beamht ;
  29.             penstroke (z1e..z3e..z2e) rotatedaround (1/2z2r,180);
  30.           endchar;
  31. enddef;
  32.  
  33. %%%%%%%%%%%%%%%%%%%%%%%
  34. % negative Steigungen %
  35. %%%%%%%%%%%%%%%%%%%%%%%
  36.  
  37. for j= 1 upto 17:
  38. for i= 1 upto min(2j,8):
  39. drawslursneg(i,j);
  40. endfor;endfor;
  41. end;
  42.